package com.mengsenlin.mapper;

import com.mengsenlin.entity.ShoppingCart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2017/8/5.
 */
@Component
public interface CartMapper {
    int insertCartFromCookie(@Param("userId")long userId, @Param("shoppingCartList")List<ShoppingCart> shoppingCartList);
    int insertCart(@Param("userId")long userId, @Param("goodsId")long goodsId, @Param("speId")long speId);
}
